.ame-color-primary {
	color: var(--systemPrimary);
}

.ame-color-secondary {
	color: var(--systemSecondary);
}

.ame-color-tertiary {
	color: var(--systemTertiary);
}

.ame-color-warning {
	color: var(--systemYellow);
}

/* Hide trial upselling banner. */

.upsell-banner {
	display: none;
}

/* Hide foreign country banner */

.banner-container {
	display: none;
}

/* Hide Open in Music button in the sidebar. */

.navigation__scrollable-container + .navigation__native-cta {
	display: none;
}

/* Add sidebar button styles. */

.native-cta {
	margin-left: 25px;
	margin-right: 24px;
	fill: var(--systemSecondary);
}

.native-cta__app-icon svg {
	width: 24px !important;
	margin-left: 4px;
	margin-right: 9px;
}

.native-cta__button {
	display: flex;
	align-items: center;
}

/* Make sidebar buttons stick to the top and stack on top of each other. */

nav {
	padding-bottom: .5em;
	grid-template-rows: min-content min-content minmax(0, min-content) min-content min-content min-content min-content min-content min-content min-content min-content !important;
}

.navigation__scrollable-container {
	margin-bottom: .5em;
}

.navigation__native-cta {
	display: contents;
}

/* Add focus styles to sidebar buttons. */

.native-cta {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	border-top: none !important;
}

.native-cta__button svg,
.native-cta__button .native-cta__label {
	transition: 50ms linear color, 50ms linear fill;
}

.native-cta__button:active svg,
.native-cta__button:active .native-cta__label {
	color: white !important;
	fill: white !important;
}

/* Make more room for error messages and button text. */

.page-error {
	width: 100% !important;
	max-width: 900px !important;
}

.page-error__title + .button button {
	padding-left: 1em;
	padding-right: 1em;
}

/* Fix artwork breaking when overflown metadata exceeds its height. */

div[slot="artwork"] {
	height: fit-content;
}

/* Make album metadata selectable */

.container-detail-header,
.headings,
.headings *,
.headings__subtitles *,
dialog *,
.section-content,
.tracklist-footer,
.tracklist-footer * {
	user-select: text !important;
	-moz-user-select: text !important;
	-webkit-user-select: text !important;
}

.headings__metadata-bottom {
	user-select: none !important;
	-moz-user-select: none !important;
	-webkit-user-select: none !important;
}

.songs-list-row__song-name {
	width: min-content;
	user-select: all !important;
	-moz-user-select: all !important;
	-webkit-user-select: all !important;
}

/* Add styles for album quality badges. */

.headings__metadata:last-child {
	margin-bottom: 48px;
}

.ame-album-badges-container > svg {
	margin-right: 1em;
	margin-top: 1em;
	fill: #999999;
}

/* Add styles for album country availabilities. */

.ame-album-countries-header {
	margin: 0 var(--bodyGutter);
	font-size: 1.1em;
}

.ame-album-countries-container {
	margin: 0 var(--bodyGutter);
	margin-bottom: var(--bodyGutter);
	padding: 1em 0;
	line-height: 2.2;
	text-align: justify;
	user-select: text;
}

.ame-album-countries-container * {
	user-select: text;
}

.ame-album-countries-container div:not(:empty) {
	padding: .5em 0;
}
